// 引入封装好的axios
import request from '@/utils/request'
/*
  获取所有的订单/根据条件获取订单
*/
export const getOrdersInfo = (params) =>{
  return request({
    url: '/commodityOrders/commodityOrdersQuery',
    method: 'GET',
    params
  })
}
/*
  更新订单状态
*/
export const updateOrderStatus = (data) =>{
  return request({
    url: '/commodityOrders/updateOrderStatus',
    method: 'POST',
    data
  })
}